package io.renren.modules.sp.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.common.dao.BaseDao;
import io.renren.modules.sp.dto.TAreaDTO;
import io.renren.modules.sp.entity.TAreaEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 用户地区
*
* @author Mark sunlightcs@gmail.com
* @since 3.0 2022-06-12
*/
@Mapper
public interface TAreaDao extends BaseDao<TAreaEntity> {
    IPage<TAreaEntity> selectPageVo(Page page, @Param(Constants.WRAPPER) QueryWrapper<TAreaDTO> query );

    List<TAreaEntity> getAreaByCode(String code);

}